const Koa = require('koa');
const app = new Koa();
const util = require('util');
const fs = require('fs');

app.use(async (ctx, next) => {
  const data = await util.promisify(fs.readFile)('./index.html')
  ctx.type = 'html'
  ctx.body = data
  next()
})

app.listen(9000)